package com.bgybmi.sender;

import java.util.ArrayList;
import java.util.List;

public class Builder {
	
	private List<Sender> list=new ArrayList<Sender>();

	private String user;
	private String msg;
	private String agentId;
	
	public Builder(String user,String msg,String agentId) {
		this.user=user;
		this.msg=msg;
		this.agentId=agentId;
	}	
	
	public void produceMailSender(int count){
		for (int i = 0; i < count; i++) {
			list.add(new MailSender());
		}
	}
		
	public void produceSmsSender(int count){
		for (int i = 0; i < count; i++) {
			list.add(new MailSender());
		}
	}
	
	public void produceWeChatSender(int count){
		for (int i = 0; i < count; i++) {
			list.add(new WeChatSender(user, msg,agentId));
		}
	}
}


